<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    Function.prototype.Lu = function (){
        console.log("我在原型上添加的方法")
    }


    console.log(Function.prototype)

    Object.Lu()


    Object.prototype.Ds = function (){
        console.log('我在object函数的原型上添加的方法')
    }


    console.log(Object.prototype)


    let obj = {};    //相当于 new Object()


    console.log(obj)

    obj.Ds();

    console.log(obj.toString());  // [object Object] 表示的就只是一个对象罢了


    let date=new Date()

    console.log(date.toLocaleString());

</script>
</body>
</html>